package com.qboot.common.exception;

import com.qboot.common.consts.MsgConst;
import lombok.Getter;
import lombok.Setter;

/**
 * 业务异常
 *
 * @author Tellsea
 * @date 2022/11/21
 */
@Getter
@Setter
public class BaseException extends RuntimeException {

    private MsgConst msgConst;

    public BaseException(String message) {
        super(message);
    }

    public BaseException(MsgConst msgConst) {
        this.msgConst = msgConst;
    }
}
